package com.gjy.liteflow.flow;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeWhileComponent;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.ThreadLocalRandom;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-09-08 15:26:37
 */
@LiteflowComponent(value = "l")
@Slf4j
public class LCmp extends NodeWhileComponent {
    @Override
    public boolean processWhile() throws Exception {
        int i = ThreadLocalRandom.current().nextInt(10);
        log.info("process l {}", i);
        return i < 6;
    }
}
